package com.laicunba.util;

import java.util.Map;

public class ParemeterUtil {

	public static String format(Map<String, String> paremeter) {
		StringBuffer sb = new StringBuffer();
		for (String key : paremeter.keySet()) {
			sb.append(key).append("=").append(paremeter.get(key)).append("&");
		}
		if (sb.length() > 0) {
			sb.deleteCharAt(sb.length() - 1);
		}
		return sb.toString();
	}

}
